//package com.wlhse.controller;
//
//import com.wlhse.dto.getDto.BaseGetDto;
//import com.wlhse.dto.inDto.UserLogInDto;
//import com.wlhse.service.UserLogService;
//import com.wlhse.util.GetCurrentUserIdUtil;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletRequest;
//
//@RestController("UserLogController")
//@RequestMapping("/api/v3")
//
//public class UserLogController {
//    @Resource
//    private UserLogService userLogService;
//
//    @Resource
//    private GetCurrentUserIdUtil getCurrentUserIdUtil;
//
//    @RequestMapping(value = "/user_log", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
//    public String addAccidentRecord(HttpServletRequest request) {
//        return userLogService.insertUserLogPojoService(getCurrentUserIdUtil.getUserId(request));
//    }
//
//    @RequestMapping(value = "/user_log/{id}", method = RequestMethod.DELETE, produces = "application/json; charset=utf-8")
//    public String deleteAccidentRecord(@PathVariable Integer id) {
//        return userLogService.deleteUserLogPojoService(id);
//    }
//
//    @RequestMapping(value = "/my_user_log_count", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
//    public String queryAccidentRecordsById(@ModelAttribute UserLogInDto userLogInDto, HttpServletRequest request) {
//        userLogInDto.setUserId(getCurrentUserIdUtil.getUserId(request));
//        return userLogService.getUserLogPojoCountService(userLogInDto);
//    }
//
//    @RequestMapping(value = "/user_log", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
//    public String queryAccidentRecordByCondition(@ModelAttribute BaseGetDto baseGetDto) {
//        return userLogService.getAllUserLogPojoService(baseGetDto);
//    }
//}
